#include "signal.h"
extern void handler(int sig);
extern void restorer();

void main()
{
	singal(SIGHUP,handler,restorer);
	singal(SIGINT,handler,restorer);
	singal(SIGQUIT,handler,restorer);
	myprintf("hello world.I am task0.\n");
	while(1);
}

void handler(int sig)
{
	myprintf("sig %d has signal.\n",sig);
}
